.class public Lcom/waiqin365/compons/camera/u;
.super Landroid/support/v4/view/PagerAdapter;


# static fields
.field static final synthetic a:Z


# instance fields
.field final synthetic b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

.field private c:Landroid/content/Context;

.field private d:Landroid/view/LayoutInflater;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    sput-boolean v0, Lcom/waiqin365/compons/camera/u;->a:Z

    return-void

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public constructor <init>(Lcom/waiqin365/compons/camera/CameraPreviewActivity;Landroid/content/Context;)V
    .locals 2

    iput-object p1, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {p0}, Landroid/support/v4/view/PagerAdapter;-><init>()V

    iput-object p2, p0, Lcom/waiqin365/compons/camera/u;->c:Landroid/content/Context;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/u;->c:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/compons/camera/u;->c:Landroid/content/Context;

    const-string/jumbo v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/u;->d:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public destroyItem(Landroid/view/ViewGroup;ILjava/lang/Object;)V
    .locals 0

    check-cast p3, Landroid/view/View;

    invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public instantiateItem(Landroid/view/ViewGroup;I)Ljava/lang/Object;
    .locals 8

    const v7, 0x7f020263

    const/4 v6, 0x0

    const v5, 0x7f0c00b8

    iget-object v0, p0, Lcom/waiqin365/compons/camera/u;->d:Landroid/view/LayoutInflater;

    const v1, 0x7f03001c

    invoke-virtual {v0, v1, p1, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    sget-boolean v0, Lcom/waiqin365/compons/camera/u;->a:Z

    if-nez v0, :cond_0

    if-nez v2, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    invoke-virtual {v2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Luk/co/senab/photoview/PhotoView;

    new-instance v1, Lcom/waiqin365/compons/camera/v;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/camera/v;-><init>(Lcom/waiqin365/compons/camera/u;)V

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setOnViewTapListener(Luk/co/senab/photoview/PhotoViewAttacher$OnViewTapListener;)V

    new-instance v1, Lcom/waiqin365/compons/camera/w;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/camera/w;-><init>(Lcom/waiqin365/compons/camera/u;)V

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setOnPhotoTapListener(Luk/co/senab/photoview/PhotoViewAttacher$OnPhotoTapListener;)V

    new-instance v1, Lcom/waiqin365/compons/camera/x;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/camera/x;-><init>(Lcom/waiqin365/compons/camera/u;)V

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v1, v1, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/compons/camera/ad;

    invoke-virtual {v1}, Lcom/waiqin365/compons/camera/ad;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v3}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->o(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v3, p0, Lcom/waiqin365/compons/camera/u;->b:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v3}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->o(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    invoke-virtual {v0}, Luk/co/senab/photoview/PhotoView;->getScaleType()Landroid/widget/ImageView$ScaleType;

    move-result-object v3

    invoke-virtual {v0, v5, v3}, Luk/co/senab/photoview/PhotoView;->setTag(ILjava/lang/Object;)V

    sget-object v3, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v3}, Luk/co/senab/photoview/PhotoView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-static {}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c()Ljava/lang/String;

    move-result-object v3

    invoke-static {}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->g()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    iget-object v3, p0, Lcom/waiqin365/compons/camera/u;->c:Landroid/content/Context;

    invoke-static {v3}, Lcom/fiberhome/gaea/client/d/f;->a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/fiberhome/gaea/client/d/f;->b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/squareup/picasso/RequestCreator;->tag(Ljava/lang/Object;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v1

    new-instance v3, Lcom/waiqin365/compons/camera/aa;

    invoke-direct {v3, p0, v0}, Lcom/waiqin365/compons/camera/aa;-><init>(Lcom/waiqin365/compons/camera/u;Luk/co/senab/photoview/PhotoView;)V

    invoke-virtual {v1, v0, v3}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;Lcom/squareup/picasso/Callback;)V

    :goto_0
    invoke-virtual {p1, v2, v6}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V

    return-object v2

    :cond_2
    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->j(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-virtual {v0, v7}, Luk/co/senab/photoview/PhotoView;->setImageResource(I)V

    invoke-virtual {v0, v5}, Luk/co/senab/photoview/PhotoView;->getTag(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    goto :goto_0

    :cond_3
    iget-object v3, p0, Lcom/waiqin365/compons/camera/u;->c:Landroid/content/Context;

    invoke-static {v3}, Lcom/fiberhome/gaea/client/d/f;->a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/fiberhome/gaea/client/d/f;->b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/squareup/picasso/RequestCreator;->tag(Ljava/lang/Object;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v1

    new-instance v3, Lcom/waiqin365/compons/camera/ab;

    invoke-direct {v3, p0, v0}, Lcom/waiqin365/compons/camera/ab;-><init>(Lcom/waiqin365/compons/camera/u;Luk/co/senab/photoview/PhotoView;)V

    invoke-virtual {v1, v0, v3}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;Lcom/squareup/picasso/Callback;)V

    goto :goto_0
.end method

.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 1

    invoke-virtual {p1, p2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method
